package com.example.shixun.utils;

import java.util.List;

public class PageInfoUtil<T> {
    private int pageNum;//页码
    private int pageSize;//每页数量
    private long total;//总数量
    private int pageTotal;//总页数
    private String orderBy;//排序词条
    private T params;
    private List<T> list;//泛型

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public T getParams() {
        return params;
    }

    public void setParams(T params) {
        this.params = params;
    }


    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int current) {
        this.pageNum = current;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
